package org.csu.myblogger.myblogger.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;

import java.sql.Date;

@Getter
@Data
@TableName("userinformation")
public class Account {
    @TableId(value = "username",type = IdType.INPUT)
    private String username;
    private String password;
    private Date birth;
    private String avatar; //头像
    //使用枚举表示性别
    public enum Gender{
        男,女
    }
    private Gender male;
    private int age;
    private String birthplace;
    private String signature;
}
